package com.type.vo;

/**
 * 타입3에 이용되는 부서객체
 * @author hyem55
 *
 */
public class DeptVO {
	private int firstType;//트리구조 값 (시퀀스를 이용해 값을 저장)
	private int secondType;//트리구조 값
	private String deptId;//부서아이디(000)
	private String deptName;//부서명
	public int getFirstType() {
		return firstType;
	}
	public void setFirstType(int firstType) {
		this.firstType = firstType;
	}
	public int getSecondType() {
		return secondType;
	}
	public void setSecondType(int secondType) {
		this.secondType = secondType;
	}
	public String getDeptId() {
		return deptId;
	}
	public void setDeptid(String deptId) {
		this.deptId = deptId;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((deptId == null) ? 0 : deptId.hashCode());
		result = prime * result
				+ ((deptName == null) ? 0 : deptName.hashCode());
		result = prime * result + firstType;
		result = prime * result + secondType;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DeptVO other = (DeptVO) obj;
		if (deptId == null) {
			if (other.deptId != null)
				return false;
		} else if (!deptId.equals(other.deptId))
			return false;
		if (deptName == null) {
			if (other.deptName != null)
				return false;
		} else if (!deptName.equals(other.deptName))
			return false;
		if (firstType != other.firstType)
			return false;
		if (secondType != other.secondType)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "DeptVO [firstType=" + firstType + ", secondType=" + secondType
				+ ", deptId=" + deptId + ", deptName=" + deptName + "]";
	}
	
}
